﻿using System.Linq;

namespace dPet.Domain.Specifications
{
	using dPet.Domain.Models;
	using Hangerd.Specification;

	public class InventoryLORecordSpecifications
	{
		public static Specification<InventoryLORecord> HospitalIdEquals(string hospitalId)
		{
			return new DirectSpecification<InventoryLORecord>(ilor => ilor.HospitalId == hospitalId);
		}

		public static Specification<InventoryLORecord> ProductBarcodeEquals(string barcode)
		{
			return new DirectSpecification<InventoryLORecord>(ilor => ilor.ProductBarcode == barcode);
		}
	}
}
